const path = require('path')

module.exports = function(filename = ''){
	const { dev, server } = this.command
	return dev ? 
	`/${filename}` : server ? 
	`/${this.location.base}/${filename}` : 
	`${path.format(this.location)}/${filename}`
}